{block name="content"}
{include file='control/storehouse/formstyle'}
<form autocomplete="off" action="{:request()->url()}"  class='layui-form layui-card' data-auto="true" id="GoodsForm" method="post">
    <div class="layui-card-body padding-left-40">

        <label class="layui-form-item block relative">
            <label class="layui-form-item block relative">
                <span class="color-green font-w7">仓库编码</span>
                <span class="color-desc margin-left-5">Goods Code</span>
                <input class="layui-input" name="code" placeholder="请输入仓库编码" required value="{$vo.code|default=''}">
            </label>
        </label>

        <label class="layui-form-item block relative">
            <label class="layui-form-item block relative">
                <span class="color-green font-w7">仓库名称</span>
                <span class="color-desc margin-left-5">Goods Name</span>
                <input class="layui-input" name="name" placeholder="请输入仓库名称" required value="{$vo.name|default=''}">
            </label>
        </label>
        <div class="layui-form-item">
            <span class="color-green font-w7 label-required-prev">仓库封面</span>
            <span class="color-desc margin-left-5">Cover and Carousel Pictures</span>
            <table class="layui-table">
                <thead>
                <tr>
                    <th class="text-center" style="width:90px">仓库封面</th>
                </tr>
                <tr>
                    <td class="text-center">
                        <input name="cover" type="hidden" value="{$vo.cover|default=''}">
                        <script>$('[name="cover"]').uploadOneImage();</script>
                    </td>
                </tr>
                </thead>
            </table>
        </div>

        <label class="layui-form-item block">
            <span class="font-w7 color-green">仓库备注</span>
            <textarea class="layui-textarea" name="remarks" placeholder="请输入仓库简介描述">{$vo.remarks|default=''|raw}</textarea>
        </label>


        <div class="hr-line-dashed margin-top-40"></div>
        {notempty name='vo.id'}<input name="id" type="hidden" value="{$vo.id}">{/notempty}

        <div class="layui-form-item text-center">
            <button class="layui-btn" type="submit">保存仓库</button>
            <button class="layui-btn layui-btn-danger" data-close data-confirm="确定要取消保存吗？" type='button'>取消保存</button>
        </div>
    </div>
</form>
{/block}

{block name='script'}
<script>
    /*! 表单初始化 */
    window.form.render();

</script>
{/block}